package com.maolong.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.maolong.pojo.dto.ProdDTO;
import com.maolong.pojo.dto.ProdDetailDTO;
import com.maolong.pojo.entity.Product;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author maolong
 * @since 2025-02-09
 */
public interface ProductMapper extends BaseMapper<Product> {

    IPage<Product> selectByConditions(@Param("page") Page<Product> page, @Param("prodDTO") ProdDTO prodDTO);

    void updateAddByConditions(ProdDetailDTO prodDetailDTO);

    void updateRemoveByConditions(ProdDetailDTO prodDetailDTO);

    void updateAlarm(Integer integer);
}
